package com.yunji.common.model.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class EventRecordVO {

    @ApiModelProperty("数据状态名")
    private String eventStatusName;

    @ApiModelProperty("操作人姓名")
    private String operateName;

    @ApiModelProperty("操作人所属名称")
    private String operateBelongName;

    @ApiModelProperty("操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operateTime;

    private String businessType;
    private String eventType;
    private Integer eventStatus;

    private String key;

    public String getKey() {
        return this.businessType+"_"+this.eventType+"_"+this.eventStatus;
    }
}
